<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="static/css/reset.css">
    <link rel="stylesheet" href="static/css/base.css">
    <link rel="stylesheet" href="static/css/index.css">
    <link rel="stylesheet" href="static/css/swiper.min.css">
    <title>龙锟汽车</title>
</head>
<body>
    <!-- <main class="main">
            <div class="swiper-container">
                <div class="swiper-wrapper" id="banner">
                    <div class="swiper-slide">
                        <a href="javascript:void(0);">
                            <img class="banner" src="static/images/banner.jpg" />
                        </a>
                    </div>
                </div>
                <div class="swiper-pagination"></div>
            </div>
            <div class="item">
                <a href="../h5/view/buyCar.html?type=0">
                    <div class="buyCar">
                        <div class="pic1">
                            <img src="static/images/bugcar.png" id="buyCar" alt="购车">
                        </div>
                        <div style="text-align: center">购车</div>
                    </div>
                </a>
                <a href="../h5/view/buyCar.html?type=1">
                <div class="rentCar">
                    <div class="pic1">
                        <img src="static/images/rent.png" alt="租车">
                    </div>
                    <div style="text-align: center">租车</div>
                </div>
                </a>
                <a href="http://h5.shengkunjinfu.net/#/">
                <div class="financialService">
                    <div class="pic1">
                        <img src="static/images/financialService.png" alt="金融服务">
                    </div>
                    <div style="text-align: center">金融服务 </div>
                </div>
                </a>
                <a href="../h5/view/driverHome.html">
                <div class="driver">
                    <div class="pic1">
                        <img src="static/images/driver.png" alt="司机之家">
                    </div>
                    <div style="text-align: center">龙锟之家</div>
                </div>
                </a>
                
            </div>
            <div class="pic">
                <div class="left">
                    <a href="view/driverApply.html">
                        <img src="static/images/pic-1.png" alt="">
                    </a>
                </div>
                <div class="right">
                    <div class="top">
                        <a href="view/myTeam.html">
                            <img src="static/images/pic-2.png" alt="">
                        </a>
                    </div>
    
                    <div class="top">
                        <a href="https://www.amap.com/search?query=%E5%85%85%E7%94%B5%E6%A1%A9&city=350200&geoobj=117.824612%7C24.424171%7C118.318996%7C24.67057&zoom=12">
                            <img src="static/images/pic-3.png" alt="">
                        </a>
                    </div>
                </div>
            </div>
            <div class="rent">
                <div class="rentText">
                    <div class="rentType">租赁好车</div>
                </div>
                <div class="paixu" id="paixu">
                    
                </div>
            </div>
            <div class="rent">
                <div class="rentText">
                    <div class="rentType">优选好车</div>
                </div>
                <div class="paixu-1" id="paixu-1">
                        
                </div>
            </div>
    </main>
    <footer class="footer">
        <div class="footer-item">
            <a href="javascript:void(0);">
                <div class="footer-pic">
                    <img src="static/images/footer-1.png" alt="首页">
                </div>
                <p>首页</p>
            </a>
        </div>
        <div class="footer-item qrcode">
            <a href="javascript:void(0);">
                <div class="footer-pic">
                    <img src="static/images/footer-2.png" alt="渠道进件">
                </div>
                <p>业务进件</p>
            </a>
        </div>
        <div class="footer-item">
            <a href="../h5/view/orderForm.html">
                <div class="footer-pic">
                    <img src="static/images/footer-3.png" alt="订单">
                </div>
                <p>订单</p>
            </a>
        </div>
        <div class="footer-item">
            <a href="../h5/view/my.html">
                <div class="footer-pic">
                    <img src="static/images/footer-4.png" alt="我的">
                </div>
                <p>我的</p>
            </a>
        </div>
    </footer>
        
    <div class="message-box"></div>
    <div class="qrcode-box">
        <div class="qrcode-wrap">
            <div class="close"></div>
            <p>请扫二维码进入小程序</p>
            <div class="qrcode-img">
                <img src="static/images/zhaodui.jpg" alt="">
            </div>
        </div>
    </div>
    <div class="hb">
        <div class="hb-bg"></div>
        <div class="hb-wrap">
            <div class="hb-gb"></div>
            <div class="hb-sx"></div>
            <div class="hb-box">
                <div class="hb-tit">新用户专享福利</div>
                <div class="hb-desc">送超值大礼包</div>
                <a href="view/xrhb.html" class="hb-btn">立即领取</a>
            </div>
        </div>
    </div> -->

    <script src="static/js/jquery.min.js"></script>
    <script src="static/js/rem.js"></script>
    <script src="static/js/base.js"></script>
	<script>
        $(function(){
            var code = getQueryString("code");
            // localStorage.setItem("code",code);
            $.ajax({
                url: baseUrl + "/rest/tenPayController/authv4?CODE="+code+"&appCode=fxjpay",
                type: 'GET',
                dataType:'json',
                success:function (e) {
                    // alert(JSON.stringify(e));
                    console.log(e);
                    var openId = localStorage.getItem("openId");
                    if(!openId){
                        localStorage.setItem("openId",e.data.openid);
                    }
                    localStorage.setItem("openId",e.data.openid);
                    localStorage.setItem("wxInfo",JSON.stringify(e.data));
                    var openId = localStorage.getItem("openId");
                    // location.href = "index.html";
                    location.href = "index.html?openId="+openId;
                    // localStorage.setItem("openId","ojV4hv0b-zEMPXYjaE8kKR_ipVas");
                    // location.href = "index.html?openId=ojV4hv0b-zEMPXYjaE8kKR_ipVas";
                }		 
            });
        });
    </script>
</body>
</html>